<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%
// Get data for the form from somewhere...
String name = null;
String web_site = null;
String address = null;
String phone = null;
String email = null;
String description = null;




	if ((String)session.getAttribute("name")!= null)
		name = (String)session.getAttribute("name");
	
	if ((String)session.getAttribute("web_site")!= null)
		web_site = (String)session.getAttribute("web_site");
	
	if ((String)session.getAttribute("address")!= null)
		address = (String)session.getAttribute("address");
	
	if ((String)session.getAttribute("phone")!= null)
		 phone = (String)session.getAttribute("phone");	
	
	if ((String)session.getAttribute("email")!= null)
		email = (String)session.getAttribute("email");
	
	if ((String)session.getAttribute("description")!= null)
		description = (String)session.getAttribute("description");
	
%>

<html>
<head>

<script>
function initText(control,value) {
	  // Initialize a text field
	  control.value = value;
	}
	
function initAll(form) {
// Initialize all form controls
  with (form) {
	  initText(name,"<%=name%>");
	  initText(email,"<%=email%>");
	  initText(web_site,"<%=web_site%>");
	  initText(phone,"<%=phone%>");	
	  initText(address,"<%=address%>");
	  initText(description,"<%=description%>");
  }
}
</script>

	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>Gestion de CV</title> 
    <meta name="author" content="supermen_IFI" />
    <meta name="keywords" content=""/>
 	<meta name="description" content=""/>
     <!-- [template css] begin -->
	<link rel="stylesheet" href="css/screen.css" type="text/css" media="screen, projection" />
	<link rel="stylesheet" href="css/960.css" type="text/css" media="screen, projection" />
    <link rel="stylesheet" href="css/print.css" type="text/css" media="print" /> 
    <script type="text/javascript" src="js/jquery-1.3.1.min.js"></script>
	<script type="text/javascript" src="js/functions.js"></script>
	<script type="text/javascript" src="js/jquery.validate.min.js"></script>
    
</head>
<body class="body" onload="initAll(document.cvForm)">

	<!-- START TOP SECTION -->
	<div class="container_12">
	
		<!-- START LOGO -->
		<div class="grid_4 header">
			<img src="images/slider/banner-p7.jpg" alt="FEJOB" />
			<div align="right">
				<a href="Homee.jsp" title="Sign Out"><font size="3">Sign Out</font></a>
			</div>	
		</div>
		<!-- END LOGO -->
   	 
		<!-- START NAVIGATION -->
   	  	<div class="grid_8 header">
   	  		<div id="navigation">
				<ul id="nav">
					<li id="home"><a href="Home.jsp" title="Home page">Home</a></li>
					<li id="about"><a href="About.html" title="About">About</a></li>
					<li id="search_job"><a href="SearchJob.jsp" title="Search Job">Search Job</a></li>
					<li id="job_management" style="width:160px"><a href="JobManagement.jsp" title="job Management" class="currentPage">Job Management</a></li>
					
				</ul>
			</div>
		</div>
		<!-- END NAVIGATION -->
		
		<div class="clear"></div>
	</div>
	<!-- END TOP SECTION -->
   
	<!-- START MEDIUM SECTION -->
	<div class="container_12 medium">
	
		<!-- START GET IN TOUCH TEXT -->
   		<div class="grid_6">
	   		<div class="getTouch">
	   			<h2><span class="orange">CV Management</span></h2>
	   			<p>
					This section is used to create your CV.
	   			</p>
	   			
	   		</div>
   		</div>
   		<!-- END GET IN TOUCH TEXT -->
   	
		<div class="clear"></div>
		
	</div>
	<!-- END MEDIUM SECTION -->
 
	<!-- START BOTTOM SECTION -->
	<div class="container_12">
	
		<!-- START CONTACT FORM -->
		<div class="grid_6" style="border: solid 1px #BBB6A5;padding:15px;float:left">
			<div class="cvForm">
	   			<h2><span class="orange">CV</span></h2>	
				<form name="cvForm" id="cvForm" action="ControllerCVManagement" method="POST">					
					<div class="formContent" >
										
						<label for="name">Name Entreprise<span class="name">required*</span></label>					
						<input type="text" name="name" id="name" class="input required" value="<% if ((String)session.getAttribute("name")!= null) out.print((String)session.getAttribute("name"));%>" />	
											
						
						<label for="email">Email<span class="name">required*</span></label>					
						<input type="text" name="email" id="email" class="input required" value="<% if ((String)session.getAttribute("email")!= null) out.print((String)session.getAttribute("email"));%>" />
						
						<label for="web">Web site<span class="name">required*</span></label>					
						<input type="text" name="web_site" id="web_site" class="input required" value="<% if ((String)session.getAttribute("web_site")!= null) out.print((String)session.getAttribute("web_site"));%>" />
						
						
						<label for="phone">Phone</label>					
						<input type="text" name="phone" id="phone" class="input required" value="<% if ((String)session.getAttribute("phone")!= null) out.print((String)session.getAttribute("phone"));%>" />
												
					
						<label for="address">Address<span class="address">required*</span></label>					
						<input type="text" name="address" id="address" class="input required" value="<% if ((String)session.getAttribute("address")!= null) out.print((String)session.getAttribute("address"));%>" />
										
					
						<label for="description">Description about yourself</label>							
						<textarea class="textarea" name="description" id="description" rows="10" cols="10" >
							<% if((String)session.getAttribute("description")!= null) out.print((String)session.getAttribute("description"));%>
						</textarea>
						<input type="hidden" name="contact_form" value="1" />
						
						<div class="clear"></div>
						<div style="margin-top:20px">
						<button name="submit" type="submit" class=" submit" style="float:left;margin:5px"><span>Save CV</span></button>
						<button name="reset" type="reset"  class=" submit" style="float:left;margin:5px"><span>Reset</span></button>	
						<button name="cancel" type="button" onclick="javascript:cancelAction();"  class=" submit" style="float:left;margin:5px"><span>Cancel</span></button>								
						</div>
					</div>
				</form>				
	   		</div>
		</div>
		<!-- END CONTACT FORM -->
		<!-- START IMAGES -->
		<div>
			<h2><a href="SearchJob.jsp"><span class="orange">Find high salary job with FEJOB</span></a></h2>
			<a href="SearchJob.jsp"><img src="images/slider/banner-m4.jpg" alt="FEJOB" /></a>
			<h2><a href="SearchJob.jsp"><span class="orange">Find excellent candidate with FEJOB</span></a></h2>
			<a href="SearchJob.jsp"><img src="images/slider/banner-m5.jpg" alt="FEJOB" /></a>
		</div>
		<!-- END IMAGES -->
	   	
	   	<div class="clear"></div>
	</div>
	<!-- END BOTTOM SECTION -->
	
   	<div class="clear"></div>
   	
	<!-- START FOOTER -->
   	<div class="container_12">
	   	<p class="footer">
	   		FEJOB_SUPERMAN_IFI
		</p>
	</div>
	<!-- END FOOTER -->
	
<!-- contact form validation -->
<script type="text/javascript">	
//<![CDATA[
  $(document).ready(function(){	
    $("#cvForm").validate({
		errorClass: "inputError",
		messages: {
			name: {	required: ""},sex: {	required: ""},phone: {	required: ""},date_birth: {	required: ""},
			email: {	required: ""},levelstudy: {	required: ""},year_experience: {	required: ""},domain: {	required: ""},languages: {	required: ""},position_wanted: {required: ""},
			salary_wanted: {	required: ""}
		}
	})
  });
 
//]]>
</script>

</body>
</html>